package com.zynn.service.module.calculate.constant;


import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.zynn.service.module.calculate.bo.DegOneFrientWithWeight;
import lombok.Data;

import java.io.Serializable;

/**
 * @author  李琦
 *
 * 新增 ESData数据字段控制
 */
@Data
public class ESTableConstant implements Serializable {


    /** v3版本 es_index */
    public static final String V3_ES_INDEX = "user_friend_index";

    /** v3版本 type */
    public static final String V3_ES_TYPE = "_doc";

    /** v3版本 一度算法推荐 source_key */
    public static final String V3_ES_SOURCE_KEY = "blend_user_friend_with_weight";



    /** v4版本 es_index */
    public static final String V4_ES_INDEX ="user_friend_index";

    /** v4版本 type */
    public static final String V4_ES_TYPE = "_doc";

    /** v4版本 高校好友推荐 source_key */
    public static final String V4_ES_SOURCE_KEY = "blend_school_user_friend_with_weight";


    private String indexName;

    private String type;


    public ESTableConstant(String indexName, String type) {
        this.indexName = indexName;
        this.type = type;
    }

    public static void main(String[] args){
        System.out.print("test");
        DegOneFrientWithWeight user = new DegOneFrientWithWeight(1L,12,null,null,null,0);

        String text = JSON.toJSONString(user);
        System.out.println(text);
    }
}
